﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Facebook;
using System.Web;
using System.Net;
using System.IO;
using System.Diagnostics;
namespace PicSync.Backend
{
    ///<summary>
    ///Holds global variables, such as the Facebook Client which holds all the information about the user
    ///</summary>
    class Connection
    {
        public static FacebookClient FBC;
        public static string SECRET_ID = "SECID";  // Cannot be shown.
        public static String APP_ID = "APPID"; // Cannot be shown.
        public static string Access_Token;

        /// <summary>
        /// This method makes a connection to Facebook 
        /// </summary>
        public static void makeConnection()
        {
            ///TODO : Have this method loading the users pref. file and load AccessToken

            Frontend.FacebookAuth auth = new Frontend.FacebookAuth();
            auth.getAccessToken();
        }
    }
}
